<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/equella/db" VERSION="20131212" COMMENT="XMLDB file for EQUELLA module"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
  <TABLES>
    <TABLE NAME="equella" COMMENT="The EQUELLA table">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" NEXT="course"/>
        <FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Course newmodule activity belongs to" PREVIOUS="id" NEXT="name"/>
        <FIELD NAME="name" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="name field for moodle instances" PREVIOUS="course" NEXT="intro"/>
        <FIELD NAME="intro" TYPE="text" NOTNULL="false" SEQUENCE="false" PREVIOUS="name" NEXT="introformat"/>
        <FIELD NAME="introformat" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="1" SEQUENCE="false" PREVIOUS="intro" NEXT="timecreated"/>
        <FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="introformat" NEXT="timemodified"/>
        <FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" PREVIOUS="timecreated" NEXT="url"/>
        <FIELD NAME="url" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="The Equella url" PREVIOUS="timemodified" NEXT="mimetype"/>
        <FIELD NAME="mimetype" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" PREVIOUS="url" NEXT="popup"/>
        <FIELD NAME="popup" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Popup options" PREVIOUS="mimetype" NEXT="activation"/>
        <FIELD NAME="activation" TYPE="char" LENGTH="40" NOTNULL="false" SEQUENCE="false" COMMENT="Activation UUID" PREVIOUS="popup" NEXT="uuid"/>
        <FIELD NAME="uuid" TYPE="char" LENGTH="40" NOTNULL="false" SEQUENCE="false" COMMENT="item uuid" PREVIOUS="activation" NEXT="version"/>
        <FIELD NAME="version" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false" COMMENT="item version" PREVIOUS="uuid" NEXT="path"/>
        <FIELD NAME="path" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Attachment path" PREVIOUS="version" NEXT="attachmentuuid"/>
        <FIELD NAME="attachmentuuid" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Attachment UUID" PREVIOUS="path" NEXT="ltisalt"/>
        <FIELD NAME="ltisalt" TYPE="char" LENGTH="40" NOTNULL="false" SEQUENCE="false" PREVIOUS="attachmentuuid"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
      </KEYS>
      <INDEXES>
        <INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
      </INDEXES>
    </TABLE>
  </TABLES>
</XMLDB>
